// lib/components/HouseStatusTag.dart
import 'package:flutter/material.dart';
import 'package:f_enjoy_plus/core/constants/app_colors.dart';
import 'package:f_enjoy_plus/components/StatusTag.dart';

class HouseStatusTag extends StatelessWidget {
  final num status;
  
  // 定义静态的tagList，避免每次创建
  static final List tagList = [
    {}, // 索引0，占位用
    {'title': '正在审核', 'bgcolor': AppColors.info, 'color': AppColors.white},
    {'title': '审核通过', 'bgcolor': AppColors.success, 'color': AppColors.white},
    {'title': '审核失败', 'bgcolor': AppColors.error, 'color': AppColors.white},
  ];

  const HouseStatusTag({
    super.key,
    required this.status,
  });

  @override
  Widget build(BuildContext context) {
    return StatusTag(
      status: status,
      tagList: tagList,
    );
  }
}